package com.haois.ws.api.module.leavemsg.dao.mapper;


import com.haois.ws.api.module.leavemsg.daomain.Message;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Created by haol on 2017/4/15.
 */
@Repository
public interface MsgMapper {

    void addMsg(@Param("msg") Message message);

    List<Message> getMsg();

    List<Message> getMsgByAppId(@Param("appId") String appId);

    Message getById(@Param("id") int id);

    void delete(@Param("id") int id);

    List<Message> getMsgByAccount(@Param("account") String account);


}
